Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(feat) KHP3-7240 : Add ability to print receipt for exempted services and partial payments #534

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

donaldkibet
Copy link
Contributor

Requirements

  • This PR has a title that briefly describes the work done, including the ticket number if there is a ticket.
  • My work conforms to the OpenMRS 3.0 Styleguide.
  • I checked for feature overlap with existing widgets.

Summary

Implements conditional rendering of the Print Receipt button based on bill payment status and line item exemptions.

  • Shows Print Receipt button when:
    • Bill contains exempted line items
    • Payments have been recorded for the bill
  • Handles various payment scenarios:
    • Full payments
    • Partial payments
    • Mixed scenarios (paid + exempted items)

@ojwanganto please review the receipt template changes needed to:

  1. Filter display to show only paid items
  2. Add clear partial payment indicators
  3. Handle mixed payment status scenarios appropriately

Screenshots

exmptions

Related Issue

None.

Other

None.

@ojwanganto
Copy link
Contributor

Thanks, @donaldkibet. We'll need a discussion so that I can refresh how this should be implemented. It is clear to include all paid, exempted, and waived line items.

@ojwanganto
Copy link
Contributor

@donaldkibet - this PR should work for this. Please review

@donaldkibet donaldkibet requested a review from makombe January 9, 2025 05:37
@donaldkibet donaldkibet merged commit 8f97bd1 into main Jan 9, 2025
4 checks passed
@donaldkibet donaldkibet deleted the KHP3-7240 branch January 9, 2025 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants